package com.ydkj.a37e_mall.Classes.Model.Request;

import android.util.Log;

import com.ydkj.a37e_mall.Resource.Utils.Rsa;

import static com.ydkj.a37e_mall.Classes.Acitivity.BaseActivity.BaseActivity.page;

/**
 * Created by Administrator on 2017/3/5.
 */

public class AddbandcardReq {
    private String uuid;
    private String account;
    private String bank;
    private String identifier_no;
    private String mobile;
    private String name;
    private String secret;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getIdentifier_no() {
        return identifier_no;
    }

    public void setIdentifier_no(String identifier_no) {
        this.identifier_no = identifier_no;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String urlString() {
        return "member/create_debitcard";
    }

    public String getSecret() {

        String string = "uuid=" + uuid + "&account=" + account + "&bank=" + bank + "&identifier_no=" + identifier_no + "&mobile=" + mobile + "&name=" + name;
        try {
            Rsa rsa = new Rsa();
            secret = rsa.encryptByPublic(string);
        } catch (Exception e) {
            e.printStackTrace();
        }
        Log.e("ssss", "添加银行卡_source===>" + string);
        return secret;
    }
}
